package com.lanjiyin.cloud.auth.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.lanjiyin.cloud.admin.vo.user.UserInfo;
import com.lanjiyin.cloud.auth.configuration.FeignConfiguration;
import com.lanjiyin.cloud.auth.util.user.JwtAuthenticationRequest;

@FeignClient(value = "lanjiyin-admin",configuration = FeignConfiguration.class)
public interface IUserService {
  @PostMapping(value = "/api/user/validate")
  public UserInfo validate(@RequestBody JwtAuthenticationRequest authenticationRequest);
}
